﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit="true" codefile="MLPHD_NewsKhuyenMai.ascx.vb" Inherits="NVPortal.Modules.NVNews.MLPHD_NewsKhuyenMai" %>
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="MLPHD_NewsKhuyenMai_table">
    <tr>
        <td style="vertical-align: top; text-align: center; padding: 0px 7px;">
        <asp:DataList RepeatColumns="3" ID="drgOtherNews" runat="server" CssClass="MLPHD_NewsKhuyenMai" RepeatDirection="Horizontal" Width="220px">
            <ItemTemplate>
                <asp:HyperLink id="hpltimg" runat="server" NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"newid"),DataBinder.Eval(Container.DataItem,"Title")) %>'>
                    <asp:Image style="padding: 2px; border: solid 1px #ddd;" BorderWidth="1" ID="imgNews" runat="server" Width="160" ImageUrl ='<%# iif(DataBinder.Eval(Container, "DataItem.imagepath").tostring().Contains("http://"),DataBinder.Eval(Container, "DataItem.imagepath"), DataBinder.Eval(Container, "DataItem.imagepath")) %>' />
                </asp:HyperLink>
            <span class="MLPHD_NewsKhuyenMai_sTitle"><asp:HyperLink CssClass="MLPHD_NewsKhuyenMai_Title" id="hplOtherNews" runat="server" ToolTip='<%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"summary"))%>' NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"newid"),DataBinder.Eval(Container.DataItem,"Title")) %>' text='<%# DataBinder.Eval(Container.DataItem,"title")%>'></asp:HyperLink></span>
            </ItemTemplate>
        </asp:DataList>
        </td>
    </tr>
</table>